import Vue from 'vue'
import Router from 'vue-router'
import Home from './components/Home'
import List from './components/List'
import MVList from './components/MVList'
import ListItems from './components/ListItems'
import MusicList from './components/MusicList'
import Search from './components/Search'

Vue.use(Router)

export default new Router({
	routes: [
		{
			path: '/',
			redirect: '/home',
		},
		{
			path: '/home',
			name: 'home',
			component: Home,
		},
		{
			path: '/list',
			name: 'list',
			component: List,
		},
		{
			path: '/mv_list&:year&:tag&:area',
			name: 'mv_list',
			component: MVList,
		},
		{
			path: '/c_list',
			name: 'c_list',
			component: ListItems,
		},
		{ 
			path: '/music_list/:id', 
			name: 'music_list',
			component: MusicList 
		},
		{ 
			path: '/search/:keywords', 
			name: 'search',
			component: Search 
		}
	]
})
